/**
 * Copyright (C), 2001-2031, www.bosssoft.com.cn
 * FileName: BaseContextConstants.java
 * Author: Camera
 * Date: 2024/8/5 12:26
 * Description:
 * <p>
 * History:
 * Date          Author   Version  Desc
 * 2024-01-01    bosssoft  1.0.0   initialize this file
 */
package com.bosssoft.common.token;

/**
 * @className: BaseContextConstants
 * @description: 定义了应用程序中使用的上下文常量，包括JWT令牌中使用的键和请求头属性键
 * @author: Camera
 * @date: 2024/8/512:26
 * @since 1.0
 **/
public class BaseContextConstants {
    // 假设这些是JWT令牌中使用的键
    public static final String JWT_KEY_USER_ID = "userId";
    public static final String JWT_KEY_USER_NAME = "userName";
    public static final String JWT_KEY_TANENT_ID = "tenantId";
    public static final String JWT_KEY_ORG_ID = "orgId";
    public static final String JWT_KEY_COMPANY_ID = "companyId";
    public static final String JWT_KEY_AUTHORITIES = "authorities";

    // 用于请求头的属性键
    public static final String USER_CONTEXT_ATTRIBUTES = "User-Context-Attributes";

    private BaseContextConstants() {}
}
